<?php
namespace Model;
use Kuyuan\WqCore\Model\Model;
class W7ModulesModel extends Model
{
    protected $_key = "mid";

    protected $_fields = array(
        "mid",
        "name",
        "type",
        "title",
        "version",
        "ability",
        "description",
        "author",
        "url",
        "settings",
        "subscribes",
        "handles",
        "isrulefields",
        "issystem",
        "target",
        "iscard",
        "permissions",
        "title_initial",
        "wxapp_support",
        "welcome_support",
        "oauth_type",
        "webapp_support",
        "phoneapp_support",
        "account_support",
        "xzapp_support",
        "aliapp_support",
        "logo",
        "baiduapp_support",
        "toutiaoapp_support",
        "from",
        "cloud_record",
        "application_type",
        "sections"
    );

    public function getLogoAttr($_value)
    {
        global $_W;
        return $_W['siteroot'].$_value;
    }
}